package com.fa4j.system.login.service;

import com.fa4j.system.login.model.CaptchaSendCmd;
import com.fa4j.system.login.model.CaptchaSendResult;
import com.fa4j.system.login.model.CaptchaType;
import jakarta.validation.Valid;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;

public interface CaptchaService {

    void validCaptcha(@NotNull CaptchaType type, @NotBlank String target, @NotBlank String captchaCode);

    CaptchaSendResult sendCaptcha(@Valid CaptchaSendCmd cmd);
}
